const modules = import.meta.globEager('comps/*/index.vue')

export default function autoImport(app) {
  for (const path in modules) {
    const mod = modules[path]
    const name = path.match(/Base\w{1,}/)[0]
    const comp = mod?.default
    app.component(name, comp)
  }
}
